#!/usr/bin/python

import struct ,sys

def htons(num):
    return struct.pack('!H',num)
def htonl(num):
    return struct.pack('!I',num)

def n_to_hs(data):
    return struct.unpack('!H',data)[0]
def n_to_hl(data):
    return struct.unpack('!I',data)[0]

def sendstring(data):
    return htonl(len(data)) + data

print "Enter a string :"
str  = sys.stdin.readline().rstrip()

print repr(sendstring(str))
